package cn.itsource.system.domain;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Role {
    private Long id;
    private String name;
    private String sn;

    //保存当前角色的所有权限 - 1.id修改时做回显 2.name在列表中显示
    private List<Permission> dbPermissions = new ArrayList<>();
    //保存当前角色的所有菜单 - 1.id修改时做回显 2.name在列表中显示
    private List<Menu> dbMenus = new ArrayList<>();

    //添加和修改时用户保存当前角色的权限和菜单
    private List<Long> permissions = new ArrayList<>();
    private List<Long> menus = new ArrayList<>();
}
